package com.domain;

import java.awt.image.BufferedImage;

/**
 * 飞行物父类（子类所有敌机，蜜蜂，子弹，英雄机）
 */
public abstract class Flying {
    //属性
    private int width;//图片宽
    private int height;//图片高
    private int x;//x坐标
    private int y;//y坐标
    private int xSpeed = 3;//x坐标移动速度
    private int ySpeed = 3;//y坐标移动速度
    private BufferedImage image;//飞行物图片
    private BufferedImage[] images;//声明图片数组
    private int index = 0;//飞行物喷气下标
    private int lifr;//声明飞机的生命值

    /**
     * 走一步的方法
     */
    public abstract void move();

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getxSpeed() {
        return xSpeed;
    }

    public void setxSpeed(int xSpeed) {
        this.xSpeed = xSpeed;
    }

    public int getySpeed() {
        return ySpeed;
    }

    public void setySpeed(int ySpeed) {
        this.ySpeed = ySpeed;
    }

    public BufferedImage getImage() {
        return image;
    }

    public void setImage(BufferedImage image) {
        this.image = image;
    }

    public BufferedImage[] getImages() {
        return images;
    }

    public void setImages(BufferedImage[] images) {
        this.images = images;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public int getLifr() {
        return lifr;
    }

    public void setLifr(int lifr) {
        this.lifr = lifr;
    }
}
